﻿#ifndef _ALERT_H
#define _ALERT_H

#include <QDialog>
#include <QMouseEvent>
#include "ui_alert.h"

class Alert : public QDialog {
	Q_OBJECT

public:
	Alert(QWidget * parent = 0);
	~Alert();
	void setText(QString text);
	public Q_SLOTS:
	void on_pbOK_clicked();
	void on_pbClose_clicked();
protected:
	virtual void mouseMoveEvent(QMouseEvent* event);
	virtual void mousePressEvent(QMouseEvent* event);
	virtual void mouseReleaseEvent(QMouseEvent* event);
	virtual void keyPressEvent(QKeyEvent* event);
Q_SIGNALS:
	void confirmOK();
private:
	Ui::Alert ui;
	bool m_isPressed;
	QPoint m_startMovePos;

};

#endif // _ALERT_H
